@extends('main/layout')
@section('title')
    <title>新闻列表页</title>
@endsection
@section('link')
    <link rel="stylesheet" href="/css/news.css">
@endsection
@section('content')
    <div class="banner">
        <img src="/images/banner.jpg" class="img-responsive">
    </div>
    <div class="news">
        <div style="border-bottom: 1px solid #333;margin-top: 10px">当前位置：<a href="/">首页</a> > {{ $title }}</div><br />
        <div style="text-align: center"><span style="color: #333;font-family: 'Open Sans','Microsoft YaHei','Heiti SC','STHeiti Light','PMingLiU', sans-serif;font-weight: 400;font-size: 18px;">{{ $title }}</span></div><br />
        <div class="state_content" style="margin-bottom: 50px;width: 100%;">
            @foreach($data as $val => $value)
            <a href="/news/detail/{{ $value['id'] }}"><div class="row"  style="border-bottom: 1px dashed #999;margin-top: 10px;">
                <div class="col-md-9 col-sm-9 col-xs-9"><i class="fa fa-arrow-right"></i> {{ $value['title'] }}</div>
                <div class="col-md-3 col-sm-3 col-xs-3" style="min-width: 90px;">{{ $value['make_time'] }}</div>
            </div></a>
            @endforeach
        </div>
        <div style="text-align: center">{{ $data->links() }}</div>
    </div>
@endsection
@section('script')
    <script src="/js/news.js"></script>
@endsection